package com.hyj.shop.project.utils.controller;

import com.hyj.shop.project.utils.domain.Emoji;
import com.hyj.shop.project.utils.page.TableDataInfo;
import com.hyj.shop.project.utils.service.EmojiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

/**
 * 验证码操作处理
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/api")
public class EmojiController extends BaseController
{
        @Autowired
        private EmojiService emojiService;
        @GetMapping(value = "/emoji/list")
        @ResponseBody
        public TableDataInfo getEmoji(Emoji emoji)  {
            System.out.println("表情");
            System.out.println(emoji);
            startPage();
            List<Emoji> list =  emojiService.queryEmojiByPage(emoji);
            return getDataTable(list);
        }


}
